
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module checkParams
* @author: Hjava
* @description: 检测参数是否合法
* @since: 2018-07-22 15:50:17
*/
var log_1 = __webpack_require__(/*! ./../utils/log */ "./src/core/utils/log.ts");
function default_1(params, formats) {
    var result = true;
    formats.every(function (element) {
        if (params[element] !== void 0) {
            return true;
        }
        log_1.default.error('param "' + element + '" do not exist');
        result = false;
        return false;
    });
    return result;
}
exports.default = default_1;


//# sourceURL=webpack://MTDX/./src/core/utils/checkParams.ts?